package cn.wsalix.admin.form;

import javax.validation.constraints.NotNull;

import lombok.Data;
import lombok.EqualsAndHashCode;
import cn.anlaser.form.RelatedForm;
import cn.wsalix.admin.entity.Permit;
import cn.wsalix.admin.entity.SysMenu;
@Data
@EqualsAndHashCode(callSuper = false)
public class MenuPermitForm extends RelatedForm {
	@NotNull
	private Long menuId;
	@NotNull
	private Long permitId;

	@NotNull
	private String code;

	@NotNull
	private String name;

	private SysMenu menu;
	private Permit permit;
	@Override
	public Long getPreFixId() {
		return menuId;
	}

	@Override
	public void setPreFixId(Long preFixId) {
		this.menuId = preFixId;
	}

	@Override
	public Long getPostFixId() {
		return permitId;
	}

	@Override
	public void setPostFixId(Long postFixId) {
		this.permitId = postFixId;
	}
}
